#ifndef _PhanSo_H
#define _PhanSo_H
#pragma once
#include <iostream>

using namespace std;

class PhanSo
{
private:
	int *tu, *mau;
public:
	PhanSo();
	PhanSo(int, int);
	PhanSo(const PhanSo &);
	~PhanSo();

	int SetTu(int);
	int SetMau(int);
	int GetTu() const;
	int GetMau() const;
	//Ham rut gon phan so
	int RutGon();

	void Nhap();
	void Xuat();

	PhanSo operator =(const PhanSo &);
	PhanSo operator + (const PhanSo &) const;
	PhanSo operator - (const PhanSo &) const;
	PhanSo operator * (const PhanSo &) const;
	PhanSo operator / (const PhanSo &) const;
	PhanSo operator +=(const PhanSo &);
	PhanSo operator +=(int);
	PhanSo operator -=(const PhanSo &);
	PhanSo operator -=(int);
	PhanSo operator *=(const PhanSo &);
	PhanSo operator *=(int);
	PhanSo operator /=(const PhanSo &);
	PhanSo operator /=(int);
	bool operator ==(const PhanSo &) const;
	bool operator !=(const PhanSo &) const;
	bool operator >(const PhanSo &) const;
	bool operator <(const PhanSo &) const;
	bool operator >=(const PhanSo &) const;
	bool operator <=(const PhanSo &) const;
};

#endif